//
//  GraphSetup.h
//  iStock Global
//
//  Created by Andy on 2010/11/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DataObject.h"
#import "HistoryPriceRecord.h"
#import "HistoryTechnologyRecord.h"
#import "TradeSystemDetailRecord.h"
#import "TradeSystemOptimized.h"
#import "TSO_Setup.h"
//技術指標
#import "MovingAverageSetUp.h"
#import "KDSetUP.h"
#import "VolumeSetUP.h"
#import "LFSetUP.h"
#import "MESASetUP.h"

@protocol GraphSetupDelgete;
 

@interface GraphSetup : UITableViewController<MESASetUP_Delgete,LFSetUP_Delgete,VolumeSetUP_Delgete,KDSetUP_Delgete,MovingAverageSetUp_Delgete,TSO_SetupDelgete,TradeSystemOptimizedDelgete,TradeSystemDetailRecordDelgete,HistoryPriceRecordDelgete,HistoryTechnologyRecordDelgete> {
	id <GraphSetupDelgete> delegate;
    id delegate_UIPopoverController;
   
    
    UIBarButtonItem *abarbuttonitem;    
    UITableView *myTable;
	 
	
	NSArray  *StockInformation_0; //個股資料
	NSArray  *TechIndicator_1;//技術指標參數設定
	NSArray  *TradeSystem_2;//交易系統
	
	
	
	NSString *name;
	NSString *code;
	
	//股票資料物件
	DataObject *stockdata;	
	 
	 
    HistoryPriceRecord *his;	
	HistoryTechnologyRecord *hist;
	
	TradeSystemDetailRecord *trasd;
	TradeSystemOptimized *traopt;
	
	TSO_Setup *tsosetp;
	
	MovingAverageSetUp *mvs;
	KDSetUP *kds;
	VolumeSetUP *vols;
	LFSetUP *lfs;
	MESASetUP *mesas;
	
    UIPopoverController* popController ;
    
    
     id AppleDeglate;    
                                           
}
@property (nonatomic, assign) id <GraphSetupDelgete> delegate;
@property (nonatomic, assign) id delegate_UIPopoverController;
@property (nonatomic, assign) NSString *name;
@property (nonatomic, assign) NSString *code;
@property (nonatomic, assign) UIBarButtonItem *barbuttonitem;
@property(assign) id AppleDeglate;

-(void)slideOut;
-(id)initWithTargetSymbol:(DataObject *)adataobject; 


@end


@protocol GraphSetupDelgete
- (void)flipsideViewControllerDidFinish:(GraphSetup *)controller;


@end
